package com.sdy.supermarket.biz.mapper;

import com.sdy.supermarket.biz.model.GsCategoryManage;
import com.sdy.mvc.mapper.BaseMapper;
import com.sdy.supermarket.biz.vo.GsCategoryManageVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author hyh
 * @since 2019-08-05
 */
public interface GsCategoryManageMapper extends BaseMapper<GsCategoryManage> {

    /**
     * 获取所有数据
     *
     * @return
     */
    @Select("select * from gs_category_manage")
    List<GsCategoryManageVo> getAll();

    /**
     * 批量更新
     *
     * @param list
     * @return
     */
    int batchUpdate(List<GsCategoryManage> list);

}
